package com.baosight.risk.api.riaa;

import com.baosight.risk.base.service.BaseService;
import com.baosight.risk.service.riaa.entity.RiquAssess;

import java.util.List;

/**
 * @author RayWade
 * @create 2019-12-27 15:58
 */
public interface RiquAssessService extends BaseService<RiquAssess> {

    List<RiquAssess> queryList(RiquAssess assess);
    List<RiquAssess> queryListGroupByRiskNo(RiquAssess assess);
    /**
     * 新增问卷评估
     * @param quId
     * @return
     */
    Integer insertRiquAssess(String quId) throws Exception;

    /**
     * 问卷评估修改
     * @param assessList
     */
    void updateRiquAssess(List<RiquAssess> assessList);

    /**
     * 生成自评
     * @param assessList
     */
    void createRisk(List<RiquAssess> assessList) throws Exception;

    /**
     * 生成重点风险
     * @param assessList
     */
    void createRiskImport(List<RiquAssess> assessList) throws Exception;
}
